home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
-
- <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
- <?xml-stylesheet href="chrome://stumbleupon/content/skin/preferenceDialog.css" type="text/css"?>
-
- <!DOCTYPE window SYSTEM "chrome://stumbleupon/locale/stumbleupon.dtd" >
-
- <dialog id="stumble_pref_dialog" title="StumbleUpon Toolbar Options"
- xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- buttons="accept,cancel"
- ondialogaccept="return doOK();"
- ondialogcancel="return doCancel();"
- onload="init()">
-
- <stringbundleset id="stringbundleset">
- <stringbundle id="bundle_stumble" src="chrome://stumbleupon/locale/stumbleupon.properties"/>
- </stringbundleset>
-
- <script type="application/x-javascript" src="preferenceDialog.js"/>
-
- <deck id="prefs_deck">
-
- <tabbox id="prefs_tabbox">
- <tabs>
- <tab id="appearance_tab"
- label="Appearance"/>
- <tab id="search_tab"
- label="Search & Tagging"/>
- <tab id="other_tab"
- label="Configuration"/>
- <tab id="shortcuts_tab"
- label="Shortcuts"/>
- </tabs>
- <tabpanels>
- <tabpanel id="appearance_panel"
- orient="vertical">
- <groupbox id="placement">
- <caption id="placement-toolkit-caption"
- label="Position and Toggle Button"/>
- <caption id="placement-caption"
- label="Toolbar Position"
- hidden="true"/>
- <grid id="customize-position-box">
- <columns>
- <column/>
- <column flex="1"/>
- <column/>
- </columns>
- <rows>
- <row>
- <vbox>
- <spacer flex="1"/>
- <button id="customize-position"
- label="Drag to Position... "
- oncommand="handle_customize_position_command();"/>
- <spacer flex="1"/>
- </vbox>
- <spacer/>
- <checkbox id="toggle"
- src="chrome://stumbleupon/content/skin/toggle_preview.png"/>
- </row>
- <row>
- <spacer/>
- <spacer flex="1"/>
- <hbox>
- <spacer width="20px"/>
- <label value="Show toggle button"
- control="toggle"
- style="color:grey;"
- onclick="handle_toggle_label_click();"/>
- </hbox>
- </row>
- <row>
- <label value="More position options:"/>
- <spacer/>
- <spacer/>
- </row>
- </rows>
- </grid>
- <hbox id="placement-box"
- align="center"
- flex="1">
- <menulist id="toolbar-position"
- flex="1"
- oncommand="handle_toolbar_position_command(event.target.id);">
- <menupopup id="placement-popup"/>
- </menulist>
- </hbox>
- <hbox align="center" flex="1">
- <radiogroup id="position-group"
- flex="1"
- orient="horizontal"
- oncommand="handle_position_group_command(event.target.id);">
- <radio id="drop" hidden="true"/>
- <spacer flex="1"/>
- <radio id="first" label="First"/>
- <spacer flex="4"/>
- <radio id="last" label="Last"/>
- <spacer flex="1"/>
- </radiogroup>
- </hbox>
- </groupbox>
- <hbox>
- <groupbox flex="1">
- <caption label="Controls"/>
- <radiogroup orient="vertical" id="text-group" flex="1">
- <hbox align="center" flex="1">
- <radio id="text-icons" label="Text and icons"
- oncommand="update_firstrater_label_enabled_state();"/>
- <radio id="icons-only" label="Icons only"
- oncommand="update_firstrater_label_enabled_state();"/>
- <spacer flex="1"/>
- </hbox>
- <hbox align="start" flex="1">
- <vbox align="start">
- <hbox align="start">
- <checkbox id="show_mode"
- label="Channels"
- oncommand="update_mode_enabled_state();"/>
- </hbox>
- <hbox align="start">
- <checkbox id="show_topics"
- label="Channel menu"/>
- </hbox>
- <hbox align="start">
- <checkbox id="show_tag"
- label="Tag"
- oncommand="handle_show_tag_command()"
- src="chrome://stumbleupon/content/skin/icon_tb_tag_left.png"/>
- </hbox>
- <hbox align="start">
- <checkbox id="show_referral"
- label="Share"
- src="chrome://stumbleupon/content/skin/icon_tb_share.png"/>
- </hbox>
- <hbox align="start">
- <checkbox id="show_info"
- label="Info"
- src="chrome://stumbleupon/content/skin/bubble.png"/>
- </hbox>
- <hbox align="start">
- <checkbox id="show_aboutme"
- label="What's New"
- src="chrome://stumbleupon/content/skin/icon_tb_user_comment.png"/>
- </hbox>
- <hbox align="start">
- <checkbox id="show_home"
- label="Favorites"
- src="chrome://stumbleupon/content/skin/icon_tb_favorites_hover.png"/>
- </hbox>
- </vbox>
- <vbox align="start">
- <hbox align="start">
- <checkbox id="show_friends"
- label="Stumblers"
- src="chrome://stumbleupon/content/skin/friend.png"/>
- </hbox>
- <hbox align="start">
- <checkbox id="show_messages"
- label="Inbox"
- src="chrome://stumbleupon/content/skin/mail2.png"/>
- </hbox>
- <!--
- <hbox align="start">
- <checkbox id="show_mystumblers"
- label="Network"
- src="chrome://stumbleupon/content/skin/stumblers.png"/>
- </hbox>
- -->
- <!--
- <hbox align="start">
- <checkbox id="show_forums"
- label="Forum"
- src="chrome://stumbleupon/content/skin/forum.png"/>
- </hbox>
- -->
- <hbox align="start">
- <checkbox id="show_groups"
- label="Groups"
- src="chrome://stumbleupon/content/skin/forum.png"/>
- </hbox>
- <hbox align="start">
- <checkbox id="show_matches"
- label="People"
- src="chrome://stumbleupon/content/skin/icon_tb_search_user.png"/>
- </hbox>
- <!--
- <hbox id="show_flag_box"
- hidden="true"
- align="start">
- <checkbox id="show_flag"
- label="Report"
- src="chrome://stumbleupon/content/skin/icon_tb_flag_blue.png"/>
- </hbox>
- -->
- <hbox align="start">
- <checkbox id="stumble_topics"
- label="Topic"
- oncommand="handle_stumble_topics_command()"/>
- </hbox>
- <hbox align="start">
- <checkbox id="show_firstrater_label_always"
- label="Suggester"
- tooltiptext="Specifies whether the suggester's nickname is displayed in 'Icons only' mode"/>
- </hbox>
- </vbox>
- </hbox>
- </radiogroup>
- </groupbox>
- <groupbox>
- <caption label="Channels"/>
- <!--
- <hbox align="start">
- <checkbox id="show_mode_all"
- label="All"
- src="chrome://stumbleupon/content/skin/all.png"/>
- </hbox>
- -->
- <hbox align="start">
- <checkbox id="show_mode_friends"
- label="Subscriptions"
- src="chrome://stumbleupon/content/skin/icon_tb_people.png"/>
- </hbox>
- <hbox align="start">
- <checkbox id="show_mode_photo"
- label="Photos"
- src="chrome://stumbleupon/content/skin/icon_tb_photo_hover.png"/>
- </hbox>
- <hbox align="start">
- <checkbox id="show_mode_video"
- label="Video"
- src="chrome://stumbleupon/content/skin/video.png"/>
- </hbox>
- <hbox align="start">
- <checkbox id="show_mode_stumblers"
- label="Profiles"
- src="chrome://stumbleupon/content/skin/stumblers.png"/>
- </hbox>
- <hbox align="start">
- <checkbox id="show_mode_search"
- label="Search"
- src="chrome://stumbleupon/content/skin/search.png"/>
- </hbox>
- <hbox align="start">
- <checkbox id="show_mode_news"
- label="News"
- src="chrome://stumbleupon/content/skin/icon_tb_news.png"/>
- </hbox>
- <hbox align="start">
- <checkbox id="show_mode_wiki"
- label="Wikipedia"
- src="chrome://stumbleupon/content/skin/wiki.png"/>
- </hbox>
- <!--
- <button id="show_mode_more"
- flex="1"
- label="More..."
- oncommand="handle_more_mode_command();"/>
- -->
- <hbox>
- <checkbox id="show_mode_more"/>
- <button id="show_mode_more_button"
- flex="1"
- label="More..."
- oncommand="handle_more_mode_command();"/>
- </hbox>
- </groupbox>
- </hbox>
- </tabpanel>
- <tabpanel id="search_panel"
- orient="vertical">
- <groupbox id="searchlinks">
- <caption>
- <label style="margin-left: 0; margin-right: 5px;" value="Web Search -"/>
- <vbox>
- <spacer flex="1"/>
- <hbox>
- <image class="searchlinks-service-icon" src="chrome://stumbleupon/content/skin/favicon_google.png"/>
- <image class="searchlinks-service-icon" src="chrome://stumbleupon/content/skin/favicon_yahoo.png"/>
- <image class="searchlinks-service-icon" src="chrome://stumbleupon/content/skin/favicon_ask.png"/>
- <image class="searchlinks-service-icon" src="chrome://stumbleupon/content/skin/favicon_aol.png"/>
- <image class="searchlinks-service-icon" src="chrome://stumbleupon/content/skin/favicon_mslive.png"/>
- </hbox>
- <spacer flex="1"/>
- </vbox>
- </caption>
- <hbox align="start">
- <checkbox id="show_searchlinks_score"
- label="Highlight recommended search results"
- oncommand="su_update_searchlinks_logo_enabled_state();"/>
- </hbox>
- <hbox>
- <spacer width="19px"/>
- <label style="margin-right: 0; color: #505050;" value="Google, Yahoo!, Ask, AOL, Bing"/>
- <!--
- <label style="margin-left: 3px; color: #505050; vertical-align: super; font-size: 70%;" value="*"/>
- -->
- </hbox>
- <hbox id="show_searchlinks_friends_box"
- align="start"
- hidden="true">
- <checkbox id="show_searchlinks_friends"
- label="Show names of friends who like search results"
- oncommand="su_update_searchlinks_logo_enabled_state();"/>
- </hbox>
- <hbox align="start">
- <checkbox id="show_searchlinks_topic"
- label="Show topics of search results"
- oncommand="su_update_searchlinks_logo_enabled_state();"/>
- </hbox>
- <hbox align="start">
- <checkbox id="show_searchlinks_logo"
- label="Show StumbleUpon logo on recommended results" />
- </hbox>
- </groupbox>
- <groupbox id="favs_box"
- hidden="true">
- <caption label="Bookmark Upon Rate or Tag"/>
- <hbox align="start">
- <checkbox id="sync_bm_meta"
- label="Save favorites & tags to a Firefox bookmark folder"
- oncommand="update_download_favs_enabled_state()"/>
- </hbox>
- <hbox>
- <spacer width="19px"/>
- <label style="margin-right: 0; color: #505050;" value="Enables searching favorites and tags via the url bar"/>
- </hbox>
- <hbox>
- <spacer width="19px"/>
- <vbox>
- <hbox>
- <button id="download_start"
- label="Download Favorites"
- style="padding-left: 5px; padding-right: 5px;"
- disabled="true"
- oncommand="handle_download_favs_command()"/>
- <button id="download_stop"
- label="Stop Download"
- style="padding-left: 5px; padding-right: 5px;"
- disabled="true"
- oncommand="handle_stop_download_favs_command()"/>
- </hbox>
- <progressmeter id="download_progress"
- hidden="false"
- flex="1"
- value="0"
- mode="determined"
- height="20px"/>
- </vbox>
- </hbox>
- <hbox align="start">
- <spacer width="19px"/>
- <checkbox id="sync_bm_exclude_adult"
- label="Exclude mature content"
- disabled="true"/>
- </hbox>
- </groupbox>
- <groupbox>
- <caption label="Tagging & Search-By-Stumble"/>
- <hbox align="start">
- <checkbox id="show_tag2"
- label="Show tag button"
- src="chrome://stumbleupon/content/skin/icon_tb_tag_left.png"
- oncommand="handle_show_tag2_command()"/>
- </hbox>
- <hbox align="start">
- <checkbox id="show_field"
- label="Show search / tag box (tag via Shift+Enter)"/>
- </hbox>
- <hbox align="start">
- <checkbox id="search_clear_queries" label="Clear search history upon exit" />
- </hbox>
- </groupbox>
- </tabpanel>
- <tabpanel id="other_panel"
- orient="vertical">
- <groupbox>
- <caption label="&caption.stumblerate;"/>
- <hbox align="start" pack="center">
- <checkbox id="great-stumble"
- label="&button.stumbleilikeit;"
- width="110px"
- src="chrome://stumbleupon/content/skin/thumbup.png"/>
- <checkbox id="bad-stumble"
- label="&button.stumblenotforme;"
- width="110px"
- src="chrome://stumbleupon/content/skin/thumbdown.png"/>
- </hbox>
- </groupbox>
- <groupbox>
- <caption label="&caption.other;"/>
-
- <!--
- <hbox align="start">
- <checkbox id="comment_firstrating" label="&button.commentfirstrating;" />
- </hbox>
- -->
- <hbox align="start">
- <checkbox id="review_new_window" label="Show page review in new tab" />
- </hbox>
- <hbox align="start">
- <checkbox id="rate_new_window" label="Show page review after rating" />
- </hbox>
- <!--
- <hbox align="start">
- <checkbox id="search_new_window" label="Show first search stumble in new tab" />
- </hbox>
- -->
- <!--
- <hbox align="start">
- <checkbox id="search_plugin" label="&button.searchplugin;" />
- </hbox>
- -->
- <hbox align="start">
- <checkbox id="stumble_upon_change" label="Stumble upon changing channel" />
- </hbox>
- <hbox align="start">
- <checkbox id="prefetch" label="Prefetch stumbles (makes stumbling faster)" />
- </hbox>
- <!--
- <hbox align="start">
- <checkbox id="stumble_topics" label="Show topic for stumble" />
- </hbox>
- -->
- <!--
- <hbox>
- <spacer width="20px"/>
- <vbox>
- <label id="search_group_prompt"
- value="Auto-complete search / tag box with:" />
- <hbox align="start">
- <radiogroup orient="horizontal" id="search_group">
- <radio id="search_group_query" label="Search terms" value="query"/>
- <radio id="search_group_tag" label="&radio.tags;" value="tag"/>
- </radiogroup>
- </hbox>
- </vbox>
- </hbox>
- -->
- <!--
- <hbox align="start">
- <checkbox id="show_firstrater_label_always" label="In icons-only mode, show suggester nickname" />
- </hbox>
- -->
- <!--
- <hbox align="start">
- <checkbox id="show_legacy_network"
- src="chrome://stumbleupon/content/skin/stumblers.png"
- label="Show classic Network control" />
- </hbox>
- -->
- <!--
- <hbox align="start">
- <checkbox id="show_legacy_forums"
- src="chrome://stumbleupon/content/skin/legacy_forum.png"
- label="Show classic Forums control"/>
- </hbox>
- -->
- <hbox>
- <vbox>
- <spacer flex="1"/>
- <checkbox id="stumble_topics2"
- oncommand="handle_stumble_topics2_command()"
- label="Show topic as"/>
- <spacer flex="1"/>
- </vbox>
- <menulist id="stumble_topics2_style_menu">
- <menupopup id="stumble_topics2_style">
- <menuitem label="reporting menu near mode menu" value="0"/>
- <menuitem label="reporting menu" value="1"/>
- <menuitem label="button" value="2"/>
- </menupopup>
- </menulist>
- </hbox>
- </groupbox>
- <!--
- <spacer flex="1"/>
- <hbox>
- <spacer flex="1"/>
- <label style="color: grey; font-size:70%" value="* StumbleUpon SearchLinks is not affiliated with these services"/>
- </hbox>
- -->
- </tabpanel>
- <tabpanel id="shortcuts_panel"
- orient="vertical">
- <groupbox orient="vertical">
- <caption label="Keyboard Shortcuts"/>
- <hbox align="start">
- <checkbox id="shortcuts-enable"
- label="Enable stumbling shortcuts"
- oncommand="handle_shortcuts_enable_command(event.target.checked);"/>
- </hbox>
- <listbox id="shortcuts"
- rows="6"
- onselect="handle_shortcuts_select(event);"
- onkeypress="return handle_shortcuts_keypress(event);"
- onkeyup="return handle_shortcuts_keyup(event);">
- <listhead>
- <listheader/>
- <listheader label="Function"/>
- <listheader label="Shortcut" flex="1"/>
- </listhead>
- <listcols>
- <listcol/>
- <listcol/>
- <listcol flex="1"/>
- </listcols>
- <listitem id="shortcut_stumble_item">
- <listcell>
- <spacer width="3px"/>
- <vbox>
- <spacer height="3px"/>
- <image id="shortcut_stumble_icon"
- src="chrome://stumbleupon/content/skin/stumble.png"/>
- <spacer height="3px"/>
- </vbox>
- <spacer width="3px"/>
- </listcell>
- <listcell>
- <label id="shortcut_stumble_label"
- value=" Stumble!" align="baseline"/>
- </listcell>
- <listcell id="shortcut_stumble"/>
- </listitem>
- <listitem id="shortcut_thumbup_item">
- <listcell>
- <spacer width="3px"/>
- <image id="shortcut_thumbup_icon"
- src="chrome://stumbleupon/content/skin/thumbup.png"/>
- <spacer width="3px"/>
- </listcell>
- <listcell>
- <label id="shortcut_thumbup_label"
- value=' Rate "I like it!"' align="baseline"/>
- </listcell>
- <listcell id="shortcut_thumbup"/>
- </listitem>
- <listitem id="shortcut_thumbdown_item">
- <listcell>
- <spacer width="3px"/>
- <image id="shortcut_thumbdown_icon"
- src="chrome://stumbleupon/content/skin/thumbdown.png"/>
- <spacer width="3px"/>
- </listcell>
- <listcell>
- <label id="shortcut_thumbdown_label"
- value=' Rate "Not-for-me"' align="baseline"/>
- </listcell>
- <listcell id="shortcut_thumbdown"/>
- </listitem>
- <listitem id="shortcut_tag_item">
- <listcell>
- <spacer width="3px"/>
- <image id="shortcut_tag_icon"
- src="chrome://stumbleupon/content/skin/icon_tb_tag_left.png"/>
- <spacer width="3px"/>
- </listcell>
- <listcell>
- <label id="shortcut_tag_label"
- value=" Tag / Untag" align="baseline"/>
- </listcell>
- <listcell id="shortcut_tag"/>
- </listitem>
- <listitem id="shortcut_reviews_item">
- <listcell>
- <spacer width="3px"/>
- <image id="shortcut_reviews_icon"
- src="chrome://stumbleupon/content/skin/bubble.png"/>
- <spacer width="3px"/>
- </listcell>
- <listcell>
- <label id="shortcut_reviews_label"
- value=" View Reviews" align="baseline"/>
- </listcell>
- <listcell id="shortcut_reviews"/>
- </listitem>
- <!--
- <listitem id="shortcut_details_item"
- tooltiptext="prompts for tags and/or review; has no equivalent button">
- <listcell>
- <spacer width="3px"/>
- <image id="shortcut_details_icon"
- src="chrome://stumbleupon/content/skin/thumbupcomment.png"/>
- <spacer width="3px"/>
- </listcell>
- <listcell>
- <label id="shortcut_details_label"
- value=' Rate with Details' align="baseline"/>
- </listcell>
- <listcell id="shortcut_details"/>
- </listitem>
- -->
- <listitem>
- <listcell/>
- <listcell>
- <label value=' Toggle Toolbar' align="baseline"/>
- </listcell>
- <listcell id="shortcut_toolbar"/>
- </listitem>
- </listbox>
- <grid>
- <columns>
- <column/>
- <column flex="1"/>
- </columns>
- <rows>
- <row>
- <vbox align="right">
- <spacer flex="1"/>
- <label value="Press new shortcut key:"/>
- <spacer flex="1"/>
- </vbox>
- <vbox flex="1">
- <spacer flex="1"/>
- <textbox id="shortcut_preview"
- onkeypress="return handle_shortcut_preview_keypress(event);"
- onkeyup="return handle_shortcut_preview_keyup(event);"
- disabled="true"/>
- <spacer flex="1"/>
- </vbox>
- </row>
- <row>
- <vbox align="right">
- <spacer flex="1"/>
- <label value="Otherwise assigned to:"/>
- <spacer flex="1"/>
- </vbox>
- <vbox flex="1">
- <spacer flex="1"/>
- <textbox id="shortcut_default_behavior"
- readonly="true"/>
- <spacer flex="1"/>
- </vbox>
- </row>
- </rows>
- </grid>
- <hbox>
- <spacer flex="1"/>
- <button id="shortcut_disable"
- label="Disable"
- disabled="true"
- oncommand="handle_shortcut_disable_command()"/>
- <button id="shortcut_revert"
- label="Revert"
- disabled="true"
- oncommand="handle_shortcut_revert_command()"/>
- <button id="shortcut_change"
- label="Change"
- disabled="true"
- oncommand="handle_shortcut_change_command()"/>
- </hbox>
- </groupbox>
- <spacer flex="1"/>
- </tabpanel>
- </tabpanels>
- </tabbox>
- <groupbox id="prefs_signin" orient="vertical">
- <caption label="Sign-in To Set Preferences"/>
- <spacer flex="1"/>
- <hbox pack="center">
- <button label="Sign-in..."
- width="170"
- oncommand="handle_signin_command()"/>
- </hbox>
- <spacer height="20"/>
- <hbox pack="center">
- <label value="or"/>
- </hbox>
- <spacer height="20"/>
- <hbox pack="center">
- <button label="Create an account..."
- width="170"
- oncommand="handle_create_account_command()"/>
- </hbox>
- <spacer flex="3"/>
- </groupbox>
- </deck>
- </dialog>
-